package com.borderbears.backend.gui.viewers;

import java.awt.BorderLayout;

import javax.swing.JTextArea;

import com.borderbears.backend.media.MediaNode;

public class XMLViewer extends AbstractViewer {

	private final JTextArea taInfo;
	
	public XMLViewer() {
		setLayout(new BorderLayout());
		taInfo = new JTextArea();
		add(taInfo);
	}
	
	@Override
	public void showNode(final MediaNode n) {
		
		taInfo.setText(n.getXML().toString());
	}

}
